import request from '@/utils/request'

// 船队列表
export function apiCaptainList(params) {
    return request({
        url: '/umsCaptain/list',
        method: 'get',
        params
    })
}

// 船队详情
export function apiCaptainDetail(params) {
    return request({
        url: '/umsCaptain/' + params,
        method: 'get'
    })
}

// 船队审核
export function apiCaptainAudit(params, data) {
    return request({
        url: '/umsCaptain/audit/' + params,
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    })
}

// 船只列表
export function apiShipList(params) {
    return request({
        url: '/shipInfo/list',
        method: 'get',
        params
    })
}

// 船只详情
export function apiShipDetail(params) {
    return request({
        url: '/shipInfo/' + params,
        method: 'get'
    })
}

// 船只审核
export function apiShipAudit(params, data) {
    return request({
        url: '/shipInfo/audit/' + params,
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        params: data
    })
}

// 出海计划列表
export function apiPublishList(params) {
    return request({
        url: '/shipPublish/list',
        method: 'get',
        params
    })
}

// 出海计划详情
export function apiPublishDetail(params) {
    return request({
        url: '/shipPublish/' + params,
        method: 'get'
    })
}

// 删除出海计划
export function apiPublishDel(params) {
    return request({
        url: '/shipPublish/' + params,
        method: 'delete'
    })
}